home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / renamr.zip / DEMO.BAT < prev    next >
DOS Batch File  |  1991-08-31  |  4KB  |  89 lines

  1. ECHO OFF
  2. ECHO
  3. CLS
  4. ECHO ******************************************************************
  5. ECHO             Demonstration of ReNamer Version 1.1
  6. ECHO                            -
  7. ECHO    ReNamer - Whenever you need to rename an application's
  8. ECHO              files and internal symbols
  9. ECHO ******************************************************************
  10. ECHO There are two primary inputs to ReNamer -
  11. ECHO      RENAMER.FSL - A File Specification List which names the
  12. ECHO                    files to participate in the renaming and
  13. ECHO                          -
  14. ECHO      RENAMER.SRL - A Symbol Rename List to define which existing
  15. ECHO                    symbols are to be changed, and to what.
  16. ECHO ******************************************************************
  17. PAUSE
  18. CLS
  19. ECHO ******************************************************************
  20. ECHO For the demo we will examine one C source file. It contains
  21. ECHO variable length records of 100 or less characters.
  22. ECHO                          -
  23. ECHO You may use ReNamer to process hundreds of files on many disk
  24. ECHO drives and different file types ( e.g. C, BAT, DOC, TXT,
  25. ECHO BAS, Pascal, SQL, etc.)
  26. ECHO                          -
  27. ECHO Following is a listing of the RENAMER.FSL control file
  28. ECHO containing the file specification list for the demo:
  29. ECHO ******************************************************************
  30. TYPE RENAMER.FSL
  31. ECHO ******************************************************************
  32. PAUSE
  33. CLS
  34. ECHO ******************************************************************
  35. ECHO The demo changes the symbol "ALPHA" to "Gamma" wherever it occurs,
  36. echo regardless of the case mixture of the letters in "AlPhA".
  37. ECHO It also changes "Stat" to "iHeapStatus", but this time
  38. ECHO it is sensitive to the case of the input text.
  39. ECHO                          -
  40. ECHO Following is the control file for symbol renaming - the symbol
  41. ECHO rename list, RENAMER.SRL.
  42. ECHO The first character is the case sensitivity code -
  43. ECHO     I - Insensitive to input case
  44. ECHO     S - Sensitive to input case
  45. ECHO     Note: Output will always be replaced in files exactly as
  46. ECHO           it appears in this control file.
  47. ECHO ******************************************************************
  48. TYPE RENAMER.SRL
  49. ECHO ******************************************************************
  50. ECHO To invoke the ReNamer utility,
  51. PAUSE
  52. MKDIR TEMPZCVS > NUL
  53. CD TEMPZCVS
  54. ERASE TESTC1.C > NUL
  55. CD ..
  56. CLS
  57. RENAMER /OUTDIR=TEMPZCVS
  58. ECHO ******************************************************************
  59. ECHO To see the ReNamer statistics,
  60. PAUSE
  61. CLS
  62. TYPE RENAMER.MSG | MORE
  63. ECHO ******************************************************************
  64. ECHO To see the files before and after,
  65. PAUSE
  66. CLS
  67. ECHO ~~~~~ TESTC1.C BEFORE RENAMING ~~~~~~
  68. TYPE TESTC1.C
  69. ECHO ******************************************************************
  70. ECHO ~~~~~ TESTC1.C AFTER RENAMING (IN SUBDIRECTORY TEMPZCVS) ~~~~~
  71. CD TEMPZCVS
  72. TYPE TESTC1.C
  73. CD ..
  74. PAUSE
  75. ECHO ******************************************************************
  76. ECHO This program is well-behaved - it will not modify your files in
  77. ECHO place. Read RENAMER.DOC for program documentation.
  78. ECHO                          -
  79. ECHO Then see how you might use ReNamer to EASILY standardize your
  80. ECHO naming conventions, improving maintainability.
  81. ECHO                          -
  82. ECHO Or use ReNamer to make your software ready to port to another
  83. ECHO platform, increasing your sales!
  84. ECHO ******************************************************************
  85. echo Best of luck to you!
  86. ECHO                          -
  87. ECHO End of Demonstration.
  88. 
  89.